#include <stdio.h>
#include "pfc_driver.h"
#include "pfc_common.h"
//#include "pfc_driver.h"
#include "MPC_closeloop.h"
#include "heat.h"
int main()
{
	int i = 0;
	virtual_phase_data_init();

	pfc_init();

	pfc_send_switch(1);
	pfc_send_voltage(300);
	pfc_send_current(70);
	pfc_send_voltage(300);
	pfc_send_status(0x111);

	MPC_switchState(&mpc_controlBlock, &MPC_INIT,1);

	heat_controlBlock h = { .heat_state = &EVT_OFF,
						.curr = 0,
						.tmax = 25,
						.enabled = true };


		

	while (i++<60)
	{
		//MPC_poll(&mpc_controlBlock);
		heat_tick(&h);
	}
}
